  <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  <%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>">
    
    <title>添加设备信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  <link href="css/style.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"></script>
  <script type="text/javascript" src="<%=path%>/js/layer/layer.js"></script>
  <script type="text/javascript" src="<%=path%>/js/dialog/dialog.js"></script>
 
   <script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js"></script>
   <script type="text/javascript" src="js/jquery.validate.js" ></script>
   <script type="text/javascript" src="js/commenjs.js" ></script>
 	<script type="text/javascript">
        $(function(){
            $("#myform").validate();
        });
    </script>
  <script type="text/javascript">
	function openFirstLayer(){

                layer.open({
                  type: 2,
                  title: ['实验室信息','background-color:rgb(40, 144, 241);padding-left:5px;color:#fff'],
                  fix: false, //不固定
                  closeBtn: 1, //显示关闭按钮
                  shade: [0.3],
                  area: ['90%', '90%'],
                  offset: '10px', //右下角弹出,
                  
                  //anim: 4,
                  content: ['<%=basePath%>admin/findlaboraryid.action', 'yes'] 
                });
            }       
            
  </script>
  </head>
  
  <body>
  
    	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">设备列表信息</a></li>
   <li><a href="#">添加设备</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form action="<%=basePath%>admin/addEquipment.action" method="post" id="myform">
    <ul class="forminfo">
    <li><label>设备编号</label><input name="equipment.equipmentid" id="equipmentid" type="text" class="dfinput required" onblur="return checkrightid();"/><i id="msgequimentid" style="color:red;font-size:12px;">*</i></li>
    <li><label>设备名称</label><input name="equipment.name" type="text" class="dfinput required" /><i style="color:red;font-size:12px;">*</i></li>
    <li><label>所属实验室</label>
    <input name="equipment.labid" id="labid" type="hidden" class="dfinput" />
    <input name="labname"  id="labname" type="text" class="dfinput required" readonly="readonly" />
    <input type="button" class="cancel" onclick="openFirstLayer()" value="选择"/>
    <i style="color:red;font-size:12px;">*</i>
    </li>
    
    <li><label>设备类别</label>
    
    <select name="equipment.classes" >
    <s:iterator value="listclass" var="list" status="index">
    <option value="${list.id}" >"${list.classname}</option>
    </s:iterator>
    </select>
   
    </li>
    <li><label>生产日期</label>
     <input class="dfinput Wdate" name="equipment.productiondate" id="endtime"  onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',isShowWeek:true})"  />
    </li>
    <li><label>产商</label><input name="equipment.producer" type="text" class="dfinput"  /></li>
    <li><label>设备状态</label>
    <input name="equipment.status" type="radio" checked="checked" value="1"/>正在使用
    <input name="equipment.status" type="radio"  value="2"/>维修中</li>
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/> <input type="button" name="button" value="返回" class="btn" onclick="javascript:window.history.back(-1);"/></li>
    </ul>
    
    </form>
    </div>

    
  </body>
</html>
